package com.atguigu.team.domain;

public class Employee {
    private int id;
    private String name;
    private int age;
    private int salary;
    //get方法
    public int getId() {
        return id;
    }
    public String getName() {
        return name;
    }
    public int getAge() {
        return age;
    }
    public int getSalary() {
        return salary;
    }
    //set方法
    public void setId(int id) {
        this.id = id;
    }
    public void setName(String name) {
        this.name = name;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public void setSalary(int salary) {
        this.salary = salary;
    }
    //构造器
    public Employee(){
    }
    public Employee(int id,String name,int age,int salary){
        this.id=id;
        this.age=age;
        this.name=name;
        this.salary=salary;
    }
    @Override
    public String toString() {
        return getDetails();
    }
    public String getDetails(){
        return id+"\t"+name+"\t"+age+"\t"+salary;
    }
}
